package com.cskaoyan.mall25.bean;

import lombok.Data;

import java.util.List;

@Data
public class BaseData<T> {

    List<T> items;
    long total;

    public static <T> BaseData data(List<T> items,long total){
        BaseData baseData = new BaseData();
        baseData.setItems(items);
        baseData.setTotal(total);
        return baseData;
    }
}
